/*
 * @Author: your name
 * @Date: 2021-11-03 14:22:56
 * @LastEditTime: 2021-11-05 17:16:49
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \datav\src\components\datav\data\right4.js
 */
export default data => {
  const option = {
    title: {
      // text: '性别',
      left: 'right',
      textStyle:{
        fontSize: 32,
        color: "#FFFFFF"
      }
    },
    tooltip: {
      trigger: 'item'
    },
    legend: {
      bottom: '4%',
      textStyle: {
        color: "#FFFFFF"
      }
    },
    series: [
      {
        name: 'Access From',
        type: 'pie',
        radius: '80%',
        y: '-10%',
        data: data,
        emphasis: {
          itemStyle: {
            shadowBlur: 10,
            shadowOffsetX: 0,
            shadowColor: 'rgba(0, 0, 0, 0.5)'
          }
        }
      }
    ],
    color: ['#79C3DD', '#C4727B']
  }
  return option
};